﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MINERP.LeaderOperate
{
    public partial class UStatusBar : UserControl
    {
        public UStatusBar()
        {
            InitializeComponent();
        }
        public double disPlay {get;set;}
        public int all { get; set; }
        public int curr { get; set; }
        private void panel_green_Paint(object sender, PaintEventArgs e)
        {
            Rectangle rect = new Rectangle(0, 0, this.panel_green.Width, this.panel_green.Height);

            System.Drawing.Drawing2D.LinearGradientBrush p = new System.Drawing.Drawing2D.LinearGradientBrush(rect, Color.Green, Color.White, 0, true);

            e.Graphics.FillRectangle(p, 0, 0, this.Width, this.Height); 
        }

        private void panel_red_Paint(object sender, PaintEventArgs e)
        {
            Rectangle rect = new Rectangle(0, 0, this.panel_red.Width, this.panel_red.Height);

            System.Drawing.Drawing2D.LinearGradientBrush p = new System.Drawing.Drawing2D.LinearGradientBrush(rect, Color.White, Color.Red, 0, true);

            e.Graphics.FillRectangle(p, 0, 0, this.Width, this.Height); 
        }

        private void UStatusBar_Load(object sender, EventArgs e)
        {
            //this.label_all.Text = all.ToString();
            //this.label_curr.Text=curr.ToString();
            
        }
    }
}
